package org.star.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author : 一叶浮萍归大海
 * @Date: 2024/6/11 14:50
 * @Description:
 */
@Slf4j
@RequestMapping("/stock")
@RestController
public class StockController8002 {

    @Value("${server.port}")
    private Integer serverPort;

    @GetMapping("/reduceStock")
    public String reduceStock() {
        log.info("扣减库存成功!嘿嘿嘿");
        return "扣减库存成功****** O(∩_∩)O\t" + serverPort;
    }

}
